package com.toolbox.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * Description：
 * </p>
 *
 * @author Mango
 * @version v1.0.0
 * @date 2023-12-06 15:13
 * @see com.toolbox.dto
 */
@Data
@ToString
@Accessors(chain = true)
@ApiModel("登录日志——展示数据")
public class InfraLogLoginDTO implements Serializable {

    private static final long serialVersionUID = 3046042313543958110L;

    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID", position = 100)
    private Long id;

    /**
     * 登录ID
     */
    @ApiModelProperty(value = "登录ID", position = 100)
    private Long accountId;

    /**
     * 登录账号
     */
    @ApiModelProperty(value = "登录账号", position = 100)
    private String username;

    /**
     * IP地址
     */
    @ApiModelProperty(value = "IP地址", position = 100)
    private String ipAddress;

    /**
     * 地区
     */
    @ApiModelProperty(value = "地区", position = 100)
    private String region;

    /**
     * 浏览器
     */
    @ApiModelProperty(value = "浏览器", position = 100)
    private String browser;

    /**
     * 操作系统
     */
    @ApiModelProperty(value = "操作系统", position = 100)
    private String operatingSystem;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", position = 100)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime gmtCreate;

}
